package com.kyzh.core.adapters

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gushenge.core.beans.Task
import com.kyzh.core.R
import com.kyzh.core.utils.loadImage

class TaskCenterAdapter(layout:Int,beans:ArrayList<Task>):BaseQuickAdapter<Task,BaseViewHolder>(layout,beans) {


    override fun convert(helper: BaseViewHolder, item: Task) {
            helper.setText(R.id.tvName,item.name)
                    .setText(R.id.tvSummary,item.summary)
        helper.getView<ImageView>(R.id.ivIcon).loadImage(item.icon)

    }
}